package etec.foxsoft.telas;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JSeparator;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.table.DefaultTableModel;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.JScrollBar;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JScrollPane;

public class Clientes extends JFrame {

	private JPanel contentPane;
	private JTextField campo_nome;
	private JTextField textField_4;
	private JTextField campo_rsocial;
	private JTextField textField_6;
	private JTextField campo_cel;
	private JTextField campo_res;
	private JTextField campo_cidade;
	private JTextField campo_end;
	private JTextField campo_nr;
	private JTextField campo_com;
	private JTextField campo_email;
	private JTextField campo_bairro;
	private JTextField campo_compl;
	private JTextField campo_cep;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Clientes frame = new Clientes();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Clientes() {
		setResizable(false);
		setTitle("FoxSoft1.0V");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 880, 620);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon(Clientes.class.getResource("/Imagens/Logo_Paris.png")));
		lblLogo.setBounds(10, 0, 232, 99);
		contentPane.add(lblLogo);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(10, 102, 323, 14);
		contentPane.add(separator);
		
		JLabel lblNomeCentral = new JLabel("Cadastro de Clientes");
		lblNomeCentral.setHorizontalAlignment(SwingConstants.CENTER);
		lblNomeCentral.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblNomeCentral.setBounds(310, 89, 243, 25);
		contentPane.add(lblNomeCentral);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setBounds(530, 102, 323, 14);
		contentPane.add(separator_1);
		
		JComboBox box_tipo = new JComboBox();
		box_tipo.setModel(new DefaultComboBoxModel(new String[] {"Tipo", "Fisica", "Jur\u00EDdica"}));
		box_tipo.setBounds(10, 113, 80, 20);
		contentPane.add(box_tipo);
		
		JLabel lblNome = new JLabel("Nome");
		lblNome.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblNome.setBounds(10, 143, 40, 14);
		contentPane.add(lblNome);
		
		campo_nome = new JTextField();
		campo_nome.setColumns(10);
		campo_nome.setBounds(101, 141, 198, 20);
		contentPane.add(campo_nome);
		
		JLabel lblRsocial = new JLabel("Raz\u00E3o Social");
		lblRsocial.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblRsocial.setBounds(10, 173, 74, 14);
		contentPane.add(lblRsocial);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(361, 141, 223, 20);
		contentPane.add(textField_4);
		
		JLabel lblCpf = new JLabel("CPF");
		lblCpf.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblCpf.setBounds(318, 143, 23, 14);
		contentPane.add(lblCpf);
		
		campo_rsocial = new JTextField();
		campo_rsocial.setColumns(10);
		campo_rsocial.setBounds(101, 171, 198, 20);
		contentPane.add(campo_rsocial);
		
		JLabel lblCnpj = new JLabel("CNPJ");
		lblCnpj.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblCnpj.setBounds(318, 173, 33, 14);
		contentPane.add(lblCnpj);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(361, 171, 223, 20);
		contentPane.add(textField_6);
		
		JLabel lblEmail = new JLabel("e-mail");
		lblEmail.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblEmail.setBounds(623, 263, 46, 14);
		contentPane.add(lblEmail);
		
		campo_cel = new JTextField();
		campo_cel.setColumns(10);
		campo_cel.setBounds(473, 261, 111, 20);
		contentPane.add(campo_cel);
		
		JLabel lblRes = new JLabel("Tel. Residencial");
		lblRes.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblRes.setBounds(10, 263, 111, 14);
		contentPane.add(lblRes);
		
		campo_res = new JTextField();
		campo_res.setColumns(10);
		campo_res.setBounds(101, 261, 111, 20);
		contentPane.add(campo_res);
		
		JLabel lblCom = new JLabel("Tel. Comercial");
		lblCom.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblCom.setBounds(222, 263, 105, 14);
		contentPane.add(lblCom);
		
		campo_cidade = new JTextField();
		campo_cidade.setColumns(10);
		campo_cidade.setBounds(473, 231, 111, 20);
		contentPane.add(campo_cidade);
		
		JLabel lblCel = new JLabel("Celular");
		lblCel.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblCel.setBounds(434, 263, 46, 14);
		contentPane.add(lblCel);
		
		campo_end = new JTextField();
		campo_end.setColumns(10);
		campo_end.setBounds(101, 201, 483, 20);
		contentPane.add(campo_end);
		
		campo_nr = new JTextField();
		campo_nr.setColumns(10);
		campo_nr.setBounds(666, 201, 40, 20);
		contentPane.add(campo_nr);
		
		JLabel lblNr = new JLabel("Nr");
		lblNr.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblNr.setBounds(623, 203, 19, 14);
		contentPane.add(lblNr);
		
		JLabel lblEstado = new JLabel("Estado");
		lblEstado.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblEstado.setBounds(623, 233, 40, 14);
		contentPane.add(lblEstado);
		
		campo_com = new JTextField();
		campo_com.setColumns(10);
		campo_com.setBounds(310, 261, 111, 20);
		contentPane.add(campo_com);
		
		JLabel lblCidade = new JLabel("Cidade");
		lblCidade.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblCidade.setBounds(434, 233, 46, 14);
		contentPane.add(lblCidade);
		
		campo_email = new JTextField();
		campo_email.setColumns(10);
		campo_email.setBounds(666, 261, 187, 20);
		contentPane.add(campo_email);
		
		campo_bairro = new JTextField();
		campo_bairro.setColumns(10);
		campo_bairro.setBounds(310, 231, 111, 20);
		contentPane.add(campo_bairro);
		
		JLabel lblBairro = new JLabel("Bairro");
		lblBairro.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblBairro.setBounds(222, 233, 40, 14);
		contentPane.add(lblBairro);
		
		campo_compl = new JTextField();
		campo_compl.setColumns(10);
		campo_compl.setBounds(795, 201, 58, 20);
		contentPane.add(campo_compl);
		
		JLabel lblEnd = new JLabel("Endere\u00E7o");
		lblEnd.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblEnd.setBounds(10, 203, 84, 14);
		contentPane.add(lblEnd);
		
		JLabel lblComplemento = new JLabel("Complemento");
		lblComplemento.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblComplemento.setBounds(717, 203, 78, 14);
		contentPane.add(lblComplemento);
		
		JSeparator separator_2 = new JSeparator();
		separator_2.setBounds(10, 299, 311, 14);
		contentPane.add(separator_2);
		
		JLabel label_19 = new JLabel("Cadastros Realizados");
		label_19.setHorizontalAlignment(SwingConstants.CENTER);
		label_19.setFont(new Font("Tahoma", Font.PLAIN, 20));
		label_19.setBounds(327, 288, 216, 25);
		contentPane.add(label_19);
		
		JSeparator separator_3 = new JSeparator();
		separator_3.setBounds(542, 299, 311, 14);
		contentPane.add(separator_3);
		
		JButton botao_ok = new JButton("OK");
		botao_ok.setIcon(new ImageIcon(Clientes.class.getResource("/Imagens/Ok.png")));
		botao_ok.setBounds(609, 558, 115, 23);
		contentPane.add(botao_ok);
		
		JButton botao_fechar = new JButton("Fechar");
		botao_fechar.setIcon(new ImageIcon(Clientes.class.getResource("/Imagens/Fechar.png")));
		botao_fechar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				
				
			}//Deixar Janela Oculta
		});
		botao_fechar.setBounds(738, 558, 115, 23);
		contentPane.add(botao_fechar);
		
		JButton botao_prox = new JButton("Pr\u00F3ximo");
		botao_prox.setBounds(101, 113, 115, 20);
		contentPane.add(botao_prox);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setModel(new DefaultComboBoxModel(new String[] {"S\u00E3o Paulo", "Minas Gerais", "Rio de Janeiro"}));
		comboBox_1.setBounds(666, 231, 187, 20);
		contentPane.add(comboBox_1);
		
		JLabel lblCep = new JLabel("CEP");
		lblCep.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblCep.setBounds(10, 233, 33, 14);
		contentPane.add(lblCep);
		
		campo_cep = new JTextField();
		campo_cep.setColumns(10);
		campo_cep.setBounds(101, 231, 111, 20);
		contentPane.add(campo_cep);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 314, 843, 217);
		contentPane.add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
				{null, null, null, null, null, null},
			},
			new String[] {
				"ID", "Nome", "Endere\u00E7o", "Tel. Com", "Tel. Res", "Cel."
			}
		));
		scrollPane.setViewportView(table);
		
		JButton ajuda = new JButton("");
		ajuda.setIcon(new ImageIcon(Clientes.class.getResource("/Imagens/Ajuda.png")));
		ajuda.setBounds(649, 11, 80, 80);
		contentPane.add(ajuda);
		
		JButton sobre = new JButton("");
		sobre.setIcon(new ImageIcon(Clientes.class.getResource("/Imagens/Sobre.png")));
		sobre.setBounds(773, 11, 80, 80);
		contentPane.add(sobre);
	}
}
